package com.aloha.common.factorybean;

import com.aloha.po.User;
import com.aloha.springframework.beans.factory.FactoryBean;

/**
 * @author DaiZhiHeng
 * @date 2023/7/24 21:58
 */
public class UserFactory implements FactoryBean<User> {

    @Override
    public User getObject() throws Exception {
        return new User().setId("1000").setName("dk").setAddress("乌兰巴托");
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
